import { Routes, RouterModule } from '@angular/router';
import { InfoPlatformComponent } from './info-platform.component';
import { HomePageComponent } from './home';
import { DetailComponent } from './pages/notification';

const routes: Routes = [
  {
    path: 'info-platform',
    component: InfoPlatformComponent,
    children: [
      {path: '', redirectTo: 'home', pathMatch: 'full'},
      {path: 'home', component: HomePageComponent},
      {path: 'notification/:id', component: DetailComponent}
    ]
  },
];


export const routing = RouterModule.forChild(routes);
